package com.ruoyi.source.api.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 物流记录对象 src_logistics
 *
 * @author ruoyi
 * @date 2024-07-23
 */
@TableName("src_logistics")
public class SrcLogistics extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long logisticsId;

    /** 出发地 */
    @Excel(name = "出发地")
    private String startAddress;

    /** 目的地 */
    @Excel(name = "目的地")
    private String endAddress;

    /** 发货方 */
    @Excel(name = "发货方")
    private String consigner;

    /** 收货方 */
    @Excel(name = "收货方")
    private String consignee;

    /** 货物id */
    @Excel(name = "货物id")
    private Long goodsId;

    /** 货物数量 */
    @Excel(name = "货物数量")
    private Long goodsNum;

    /** 运输方式 */
    @Excel(name = "运输方式")
    private Long transportType;

    /** 运输开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "运输开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 运输结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "运输结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endeTime;

    /** 物流公司 */
    @Excel(name = "物流公司")
    private String logisticsCompany;

    /** 0正常 1删除 */
    @Excel(name = "0正常 1删除")
    private String isFault;

    /** 货物类型 */
    @Excel(name = "货物类型")
    private Long goodsType;

    /** 货物司机 */
    @Excel(name = "货物类型")
    private Long uid;

    /** 库id */
    @Excel(name = "库id")
    private Long storeId;

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getUid() {
        return uid;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getLogisticsId() {
        return logisticsId;
    }

    public void setLogisticsId(Long logisticsId) {
        this.logisticsId = logisticsId;
    }

    public String getStartAddress() {
        return startAddress;
    }

    public void setStartAddress(String startAddress) {
        this.startAddress = startAddress;
    }

    public String getEndAddress() {
        return endAddress;
    }

    public void setEndAddress(String endAddress) {
        this.endAddress = endAddress;
    }

    public String getConsigner() {
        return consigner;
    }

    public void setConsigner(String consigner) {
        this.consigner = consigner;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Long goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Long getTransportType() {
        return transportType;
    }

    public void setTransportType(Long transportType) {
        this.transportType = transportType;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndeTime() {
        return endeTime;
    }

    public void setEndeTime(Date endeTime) {
        this.endeTime = endeTime;
    }

    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany;
    }

    public String getIsFault() {
        return isFault;
    }

    public void setIsFault(String isFault) {
        this.isFault = isFault;
    }

    public Long getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Long goodsType) {
        this.goodsType = goodsType;
    }

    @Override
    public String toString() {
        return "SrcLogistics{" +
                "logisticsId=" + logisticsId +
                ", startAddress='" + startAddress + '\'' +
                ", endAddress='" + endAddress + '\'' +
                ", consigner='" + consigner + '\'' +
                ", consignee='" + consignee + '\'' +
                ", goodsId=" + goodsId +
                ", goodsNum=" + goodsNum +
                ", transportType=" + transportType +
                ", startTime=" + startTime +
                ", endeTime=" + endeTime +
                ", logisticsCompany='" + logisticsCompany + '\'' +
                ", isFault='" + isFault + '\'' +
                ", goodsType=" + goodsType +
                '}';
    }
}
